﻿using System.Collections.ObjectModel;
using System.Windows.Controls;
using GalaSoft.MvvmLight.Messaging;

namespace Songhay.Silverlight.BiggestBox.AdditionalSamplesPart.Views
{
    using Songhay.Mvvm.Models;

    public partial class TransitioningContentControlSample : UserControl
    {
        public TransitioningContentControlSample()
        {
            InitializeComponent();

            this.Loaded += (s, args) =>
            {
                var controls = new ObservableCollection<UserControl>();
                controls.Add(new TransitioningContentUserControlOne());
                controls.Add(new TransitioningContentUserControlTwo());
                controls.Add(new TransitioningContentUserControlTwoAndAHalf());

                var message = new LightMessage<ObservableCollection<UserControl>>(controls)
                {
                    Source = LightMessageSource.View,
                    UniqueId = "TransitioningContentControlSample"
                };
                Messenger.Default.Send(message);
            };
        }
    }
}
